<?php
$strCon = '$_arrWeb = array();'."\n";
$strSQL = "select * from `bet_LottoWeb` where 1";
if($RS = @PMA_mysql_query($strSQL, $$_Conn)){
	while($Rows = PMA_mysql_fetch_object($RS)){
		$strCon .= '$_arrWeb['.$Rows -> ID.'] = array("'.$Rows -> Domain.'", "'.$Rows -> Name.'", "'.$Rows -> WebClass.'", "'.$Rows -> DirName.'");'."\n";
	}
	$strCon = '<?php'."\n".$strCon.' ?>';
	if(!$fp = fopen($_SERVER["DOCUMENT_ROOT"]."/common/AllWeb.inc.php","w+")){
		$GLOBALS["errormessage"] = "Can't Open Marquee File!!";
		$GLOBALS["errorhidden"] = "\nLine:".__LINE__."\nPage:".__FILE__;
		include($_SERVER["DOCUMENT_ROOT"]."/error.php");
	}
	fputs($fp, $strCon);
	fclose($fp);
}
?>